n = int(input())

a,b = 2,1
sum = 0.0

for i in range(n):
    sum += a / b
    temp = a+b
    a,b = temp,a

print(f"{sum:.2f}")